This example will illustrate the process of creating a General Element that uses Option fields in the Interaction section. The Information section of the Element asks the user the question:

Which of the following authors wrote the novel Great Expectations?

a). Leo Tolstoy.

b). Thomas Hardy.

c). Jane Austen.

d). Charles Dickens.



In the Interaction section of the Element Option fields are placed beside the names of each author. Only one, Charles Dickens, is the correct answer. The aim is to have the user click the correct option field and click a Next button when they are satisfied with their answer. Consequently each of the Option fields should have their Response property set to false.

The following table lists each of the Options fields by name.

Check box field Name

Tolstoy

Hardy

Austen

Dickens



The condition for the Response that traps the correct answer is as follows:

IF Dickens = true

Remember that only one of the Option fields in the Interaction list can have a value of true, all the others must be false. Three additional responses can be added that check which Option field has been set to true in the case that the above condition evaluated to false.

IF Tolstoy = true

IF Hardy = true

IF Austen = true

This allows you to provide feedback that is sensitive to each possible incorrect answer. So if the user clicked the Tolstoy Option field you could place the following text in the Feedback list:



Incorrect. Tolstoy is well known for writing War and Peace.

However, if you were only interested in distinguishing between a correct answer and an incorrect answer only two Responses are necessary. The Response for trapping the incorrect answer would contain the following condition:

IF Dickens <> true